<?php

/**
 * This template is used when generating
 * div with similar questions while
 * parsing one question (submitted question)
 *
 * The result is then stored in QUESTIONS collection
 * under the sims key
 *
 * Usually this template is not used during
 * page rendering, only during saving
 * data
 *
 */
class tplSimquestions extends StudyBuddy\Template\Template
{

	protected static function func(&$a){
		$a['intro'] = trim($a['intro']);
	}
	
	protected static $vars = array(
	'qid' => '',
	'url' => '',
	'intro' => '',
	'title' => '',
	'hts' => '');

	protected static $tpl = '<div class="simq"><a href="/q%1$s/%2$s" title="%3$s">%4$s</a><br><span class="ts" title="%5$s">%5$s</span><br></div>';
}
